package com.zxy.permission_stu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author lenovo
 * @since 2021-11-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;

    private Integer sex;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    private Integer claeeseId;

    private Integer collegeId;

    @TableField(exist = false)
    private String className;
    @TableField(exist = false)
    private String collegeName;
    @TableField(exist = false)
    private String coursesName;
    @TableField(exist = false)
    private List<Courses> courses;
    @TableField(exist = false)
    private String UUId;
}
